import { useState } from 'react'

export function usePopup() {
  const [visible, setVisible] = useState(false)

  function handleShow() {
    setVisible(true)
  }

  function handleClose() {
    setVisible(false)
  }

  return {
    visible,
    handleShow,
    handleClose
  }
}
